import Vue from 'vue'
import Router from 'vue-router'
import Index from '../components/home/index.vue'
import moren from '../components/index.vue'
import gameSetting from '../components/gameSetting.vue'
import promptFunction from '../components/promptFunction.vue'
import preRecord from '../components/preRecord.vue'
import gameRecord from '../components/GameRecord.vue'
import brandProbability from '../components/brandProbability.vue'
import userCount from '../components/userCount.vue'
import gameConfig from '../components/gameConfig.vue'
import userMessage from '../components/userMessage.vue'
import gameController from '../components/gameController.vue'
import shieldWord from '../components/shieldWord.vue'
import addGoods from '../components/addGoods.vue'
import notice from '../components/notice.vue'
import login from '../components/login.vue'
import webscoket from '../components/websocket.vue'
import paymentConfig from '../components/paymentConfig.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
        path: '/',
        name: 'login',
        component: login,
      },
      {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/Index',
      name: 'Index',
      component: Index,
      children: [
      {
        name: 'gameConfig',
        component: gameConfig,
        path: '/'
      },
       {
        name: 'gameSetting',
        component: gameSetting,
        path: '/gameSetting'
      },
       {
        name: 'brandProbability',
        component: brandProbability,
        path: '/brandProbability'
      },
      {
        name: 'promptFunction',
        component: promptFunction,
        path: '/promptFunction'
      },
       {
        name: 'preRecord',
        component: preRecord,
        path: '/preRecord'
      },
      {
        name: 'gameRecord',
        component: gameRecord,
        path: '/gameRecord'
      },
      {
        name: 'userCount',
        component: userCount,
        path: '/userCount'
      },
      {
        name: 'gameConfig',
        component: gameConfig,
        path: '/gameConfig'
      },
      {
        name: 'userMessage',
        component: userMessage,
        path: '/userMessage'
      },
      {
        name: 'gameController',
        component: gameController,
        path: '/gameController'
      },
      {
        name: 'shieldWord',
        component: shieldWord,
        path: '/shieldWord'
      },
      {
        name: 'addGoods',
        component: addGoods,
        path: '/addGoods'
      },
      {
        name: 'notice',
        component: notice,
        path: '/notice'
      },
       {
        name: 'webscoket',
        component: webscoket,
        path: '/webscoket'
      },
      {
        name: 'paymentConfig',
        component: paymentConfig,
        path: '/paymentConfig'
      },

    ]
    }
    
  ]
})
